function copy(ele) {
    //去除禁止复制
    let list = [];
    [document, ...document.querySelectorAll("*")].forEach((i) => {
        i.oncontextmenu = "";
        i.onselectstart = true;
        i.oncopy = "";
        if (getEventListeners(i).hasOwnProperty("copy")) {
            list.push(i);
        }
    });
    list.forEach((i) => {
        getEventListeners(i).copy.forEach((ii) => i.removeEventListener("copy", ii.listener));
    });
    //实现变量到剪贴板
    let inner = ele instanceof HTMLElement ? ele.innerText : JSON.stringify(ele);
    let a = document.createElement("div");
    a.innerText = inner;
    console.log(inner);
    document.body.appendChild(a);
    getSelection().selectAllChildren(a);
    document.execCommand("copy");
    a.remove();
}
